package com.example.androidmainshixun.view;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.example.androidmainshixun.R;
import com.example.androidmainshixun.base.BaseFragment;

public class SellerHomepageFragement extends BaseFragment{
    private TextView textViewGoBuy;
    private TextView buttonOrderManagement;
    private TextView buttonMyGoods;
    private TextView buttonPurchaseManagement;

    @Override
    protected int getLayoutId() {
        return R.layout.seller_homepage_fragment;
    }

    @Override
    protected void initView() {
    textViewGoBuy=mView.findViewById(R.id.textViewGoBuy);
    buttonOrderManagement=mView.findViewById(R.id.buttonOrderManagement);
        buttonMyGoods=mView.findViewById(R.id.buttonMyGoods);
        buttonPurchaseManagement=mView.findViewById(R.id.buttonPurchaseManagement);

    textViewGoBuy.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            Intent intent=new Intent(getContext(),MainActivity.class);
            startActivity(intent);
        }
    });
        buttonOrderManagement.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), SoldGoods.class);
                startActivity(intent);
            }
        });
        buttonMyGoods.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), MyGoods.class);
                startActivity(intent);
            }
        });
        buttonPurchaseManagement.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), MyGoods.class);
                startActivity(intent);
            }
        });
    }

    @Override
    protected void initListener() {

    }
}
